<template>
  <div>
    <el-container>
      <el-header>
        <div class="img">
          <img src="../assets/01.png" alt="" />
          <h2>在线后台管理系统</h2>
        </div>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <el-menu
            default-active="2"
            class="el-menu-vertical-demo"
            background-color="#324057"
            text-color="#fff"
            active-text-color="#ffd04b"
          >
            <el-menu-item index="4">
              <i class="el-icon-setting"></i>
              <span slot="title">首页</span>
            </el-menu-item>
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>资金管理</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="1-1">资金流水</el-menu-item>
              </el-menu-item-group>
            </el-submenu>
            <el-submenu index="2">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>信息管理</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="1-2">个人信息</el-menu-item>
              </el-menu-item-group>
            </el-submenu>
          </el-menu>
        </el-aside>
        <el-main>
          <router-link></router-link>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {},
  created() {},
  mounted() {},
  components: {},
  computed: {},
  watch: {},
};
</script>

<style lang='scss' scoped>
.el-header,
.el-footer {
  background-color: #324057;
  color: #333;
  line-height: 60px;
}

.el-aside {
  background-color: #324057;
  color: #333;
  text-align: center;
  line-height: 200px;
  height: 90vh;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 160px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
h2 {
  color: #fff;
  margin-left: 50px;
}
.img{
   height: 100%;
   display: flex;
//    justify-content: center;
//    align-items: center;

}
.el-menu {
  background-color: #324057;
}
</style>
